const initialState = {
  count: 6
}

export default (state = initialState, action) => {
  switch (action.type){
    case 'increament': 
      return {
        count: state.count + action.payload
      }
    case 'decreament':
      return {
        count: state.count -1
      }
  }
  return state
}

